import com.mysql.jdbc.Connection;

//线程池集中管理类
public class ConnectionPoolManager {

    private static DbBean dbBean = new DbBean();

    private static ConnectionPool connectionPool = new ConnectionPool();

    //获取连接（重复连接机制）
    public static Connection getConnection(){
        return connectionPool.getConnection();
    }

    //释放连接（可回收机制）
    public static void releaseConnection(Connection connection){
        connectionPool.releaseConnection((com.mysql.jdbc.Connection) connection);
    }

}
